Auditability system - #415
Draft
yyi5708 wants to merge 4 commits into
Draft
Conversation
andymeneely
requested changes
Jul 23, 2026
andymeneely
left a comment
Member
There was a problem hiding this comment.
Excellent! Ok the main things are:
- There might be some methods here that are either repeats of methods we've done elsewhere, so it might be worthwhile to either use them or move them to a more shared utility module.
- Since the AuditLogger primarily interacts with the database anyway, I think we should keep the parameter to the routes module as it is, and AuditLogger just uses the db object. Keeps the interface simpler I think.
4 tasks
added 2 commits
July 26, 2026 12:51
4 tasks
Contributor
Author
|
const ACTION_TYPES = {
CREATE: "CREATED",
UPDATE: "UPDATED",
DELETE: "DELETED", //NEW
DEACTIVATE: "DEACTIVATED",
REACTIVATE: "REACTIVATED",
}; |
4 tasks
4 tasks
Contributor
Author
|
//Semesters
“/createSemester”
CREATE
“/editSemester”
UPDATE
//Actions
“/createAction”
CREATE //DONE
DEACTIVATE
REACTIVATE
“/editAction”
UPDATE //DONE
DEACTIVATE //DONE
REACTIVATE //DONE
//Projects
“/editProject”
UPDATE //DONE
//Archives
“/createArchive”
CREATE
DEACTIVATE
REACTIVATE
“/editArchive”
UPDATE
DEACTIVATE
REACTIVATE
//Users
“/createUser”
CREATE
DEACTIVATE
REACTIVATE
“/editUser”
UPDATE
DEACTIVATE
REACTIVATE
//Sponsors
“/createSponsor”
CREATE
DEACTIVATE
REACTIVATE
“/editSponsor”
UPDATE
DEACTIVATE
REACTIVATE
“/createSponsorNote”
CREATE
//Time Logs
“/createTimeLog”
CREATE
“/removeTime”
DELETE
//Error Logs
“/removeErrorLog/:id”
DELETE
//Misc
“/submitAction”
CREATE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WIP